package com.new_wear.project.system.log.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.new_wear.framework.aspectj.lang.annotation.Excel;
import com.new_wear.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 用户 - 等级积分日志对象 cst_user_integral_log
 * 
 * @author new_wear
 * @date 2019-12-31
 */
public class CstUserIntegralLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** 用户openid */
    @Excel(name = "用户openid")
    private Long uid;

    /** 区域ID */
    @Excel(name = "区域ID")
    private Integer areaId;

    /** 行为ID */
    @Excel(name = "行为ID")
    private String eventCode;

    /** 行为描述 */
    @Excel(name = "行为描述")
    private String eventNote;

    /** 第三方唯一标识 */
    @Excel(name = "第三方唯一标识")
    private String objId;

    /** 积分数 */
    @Excel(name = "积分数")
    private Long scores;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 设备ID */
    @Excel(name = "设备ID")
    private String deviceId;

    /** 设备IP */
    @Excel(name = "设备IP")
    private String deviceIp;

    /** 加入时间 */
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 是否可更改 */
    @Excel(name = "是否可更改")
    private Integer canEdit;

    /** 积分累计类型（0 行为积分 1 自定义积分） */
    @Excel(name = "积分累计类型", readConverterExp = "0=,行=为积分,1=,自=定义积分")
    private Integer grandType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setAreaId(Integer areaId) 
    {
        this.areaId = areaId;
    }

    public Integer getAreaId() 
    {
        return areaId;
    }
    public void setEventCode(String eventCode) 
    {
        this.eventCode = eventCode;
    }

    public String getEventCode() 
    {
        return eventCode;
    }
    public void setEventNote(String eventNote) 
    {
        this.eventNote = eventNote;
    }

    public String getEventNote() 
    {
        return eventNote;
    }
    public void setObjId(String objId) 
    {
        this.objId = objId;
    }

    public String getObjId() 
    {
        return objId;
    }
    public void setScores(Long scores) 
    {
        this.scores = scores;
    }

    public Long getScores() 
    {
        return scores;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceIp(String deviceIp) 
    {
        this.deviceIp = deviceIp;
    }

    public String getDeviceIp() 
    {
        return deviceIp;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }
    public void setCanEdit(Integer canEdit) 
    {
        this.canEdit = canEdit;
    }

    public Integer getCanEdit() 
    {
        return canEdit;
    }
    public void setGrandType(Integer grandType) 
    {
        this.grandType = grandType;
    }

    public Integer getGrandType() 
    {
        return grandType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("areaId", getAreaId())
            .append("eventCode", getEventCode())
            .append("eventNote", getEventNote())
            .append("objId", getObjId())
            .append("scores", getScores())
            .append("note", getNote())
            .append("deviceId", getDeviceId())
            .append("deviceIp", getDeviceIp())
            .append("createAt", getCreateAt())
            .append("canEdit", getCanEdit())
            .append("grandType", getGrandType())
            .toString();
    }
}
